package com.ruoyi.web.controller.mall;

import com.ruoyi.system.mc.entity.McRoomPerson;
import com.ruoyi.system.mc.entity.R;
import com.ruoyi.system.mc.service.McRoomPersonService;
import org.springframework.web.bind.annotation.GetMapping;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

/*
 *  @author 雨安
 *  类名： McRoomPersonController
 *  创建时间：2024/5/31
 */
@RestController//返回 json 或 字符串格式数据
@RequestMapping(value = "/mc/room/person/api")//访问前缀名
public class McRoomPersonController {

    //聊天室表 Service层
    @Resource
    private McRoomPersonService mcRoomPersonService;


    /**
     * 查询对应的聊天室
     * @param mcRoomPerson 查询条件对象
     * @return 返回查询内容
     */
    @GetMapping("/select/all/room")
    public R<McRoomPerson> selectAllRoom(McRoomPerson mcRoomPerson){
        //调用Service层
        return mcRoomPersonService.selectAllRoom(mcRoomPerson);
    }





}
